package thinkingJava.chapter14;
class C implements A {
	public void f() {
		System.out.println("C.f()");
	}
	public void g() {
		System.out.println("C.g()");
	}
	void u() {
		System.out.println("package C.u()");
	}
	protected void v() {
		System.out.println("protected C.v()");
	}
	private void w() {
		System.out.println("private C.w()");
	}
}
public class HiddenC {
	public static A makeA() {
		return new C();
	}
	public static void main(String[] args) {
		A a = makeA();
		System.out.println(a.getClass().getSimpleName());
		if (a instanceof C) {
			C c = (C)a;
			c.u();
		}
	}
}
